import {Injectable} from "@angular/core";
import {Http, Response} from "@angular/http";
import {Observable} from "rxjs/Rx";
/**
 * Created by Administrator on 2016/8/5.
 */

@Injectable()
export class GroupService{
    
    private http:Http;
    
    constructor(http:Http){
        this.http = http;
    }
    
    getAllGroup():Observable<Response>{
        let url = "http://localhost:8888/demo-server/user/group";
        return this.http.request(url);
    }
}